package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.ServerconfigMapper;
import com.cn.jdia.dc.model.Serverconfig;
import com.cn.jdia.dc.service.IServerconfigService;

@Service("svconfigService")
public class IServerconfigServiceImpl implements IServerconfigService{

	@Resource
	private ServerconfigMapper svconfigDao;
	
	@Override
	public int addServerConfig(Serverconfig svconfig) {
		return this.svconfigDao.insertSelective(svconfig);
	}

	@Override
	public List<Serverconfig> getAllServerConfig() {
		return svconfigDao.selectAll();
	}

	@Override
	public List<Serverconfig> getHeartBeat() {
		return this.svconfigDao.selectHeartBeat();
	}

}
